package io.renren.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.SnowflakeIdWorker;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


import java.math.BigDecimal;
import java.io.Serializable;
import java.time.Instant;
import java.util.Date;
import lombok.Data;

/**
 * 余额充值订单
 * 
 * @author MR.XU
 * @email 260139486@qq.com
 * @date 2021-01-25 16:40:45
 */
@Data
@TableName("tb_balance_order")
@ApiModel(value = "BalanceOrder对象", description = "余额充值订单")
public class BalanceOrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
		@ApiModelProperty(value = "ID")
private Integer id;
	/**
	 * 充值金额
	 */
		@ApiModelProperty(value = "充值金额")
private BigDecimal money;
	/**
	 * 订单编号
	 */
		@ApiModelProperty(value = "订单编号")
private String orderNumber = SnowflakeIdWorker.getNextOrderNo("YEDD");
	/**
	 * 生成订单时间
	 */
		@ApiModelProperty(value = "生成订单时间")
private Date createTime = Date.from(Instant.now());
	/**
	 * 支付方式1微信2支付宝
	 */
		@ApiModelProperty(value = "支付方式1微信2支付宝")
private Integer payType;
	/**
	 * 用户id
	 */
		@ApiModelProperty(value = "用户id")
private Integer userId;
	/**
	 * 支付时间
	 */
		@ApiModelProperty(value = "支付时间")
private Date payTime;
	/**
	 * 支付状态1已支付
	 */
		@ApiModelProperty(value = "支付状态1已支付")
private Integer payStatus;

}
